﻿@{
    ViewBag.Title = Local("NavigatorView.PageTitle");
    ViewBag.ActionMenu = "themeview";
}

<div class="box">
    <div class="tright">
        <button onclick="return openModal('@CUrls.GetDialogNavigatorUrl(ViewBag.Theme as string)', 400)">@Local("Navigator.New")</button>
    </div>

    <div id="tabs">
        <ul>
        @foreach (NavigatorLocation location in Enum.GetValues(typeof(NavigatorLocation)))
        {
            <li><a href="#tabs-@location">@Local(location)</a></li>
        }
        </ul>
        @foreach (NavigatorLocation location in Enum.GetValues(typeof(NavigatorLocation)))
        {
            <div id="tabs-@location">
                <table cellpadding="0" cellspacing="0">
                    <thead class="ui-widget-header">
                        <tr>
                            <td>@Local("Navigator.DisplayName")</td>
                            <td>@Local("Navigator.Key")</td>
                            <td>@Local("Navigator.NavigatorUrl")</td>
                            <td class="w80 tcenter">@Local("Action")</td>
                        </tr>
                    </thead>
                    <tbody style="background-color:White;">
                        @CPHelper.ShowNavigators(new Navigator(ViewBag.Theme as string) { SettingsID = Settings.SettingsID, Location = location }, ViewBag.Theme, 0)
                    </tbody>
                </table>
            </div>
        }
    </div>
</div>
